package com.feituan.core.api;


import com.alibaba.fastjson.JSONObject;
import com.feituan.core.pojo.api.AuthorizationReq;
import com.feituan.core.pojo.api.PrinterReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "PrinterClient",url = "https://cloud-open-api.10ss.net/v2")
public interface PrinterClient {
    /**
     * 授权
     * @param authorizationReq authorizationReq
     */
    @PostMapping("/oauth/oauth")
    JSONObject getAuthorization(AuthorizationReq authorizationReq);

    /**
     * 打印
     * @param printerReq printerReq
     */
    @PostMapping("/print/index")
    JSONObject printer(PrinterReq printerReq);
}
